/* 通知中心样式 */
.notification-center {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.notification-center.active {
    right: 0;
}

.notification-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.notification-toolbar {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.notification-count {
    color: #666;
    font-size: 0.9rem;
}

.mark-all-read {
    background: none;
    border: none;
    color: #4a90e2;
    cursor: pointer;
    font-size: 0.9rem;
}

.mark-all-read:hover {
    text-decoration: underline;
}

.notification-list {
    height: calc(100% - 120px);
    overflow-y: auto;
    padding: 1rem;
}

.notification-item {
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread:hover {
    background: #e5f1ff;
}

.notification-content {
    margin-bottom: 0.5rem;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.notification-message {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.notification-time {
    font-size: 0.8rem;
    color: #888;
}

.unread-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a90e2;
}

/* 通知图标 */
.notification-icon {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e24a4a;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notification-center {
        width: 100%;
        right: -100%;
    }
}
